SRC=fileParser.o  main.o  ioevent.o  rtxpSession.o  worker_thread.o  baseSession.o log.o
TARGET=rtspServer
LIBS=-L./3rd_lib  -pthread -lrt -lcrypto -lssl -pthread -lrt -lavcodec -lavfilter -lavformat -lavutil -lswresample -lswscale  -lx264
OPT=-std=c++11 -Wint-to-pointer-cast -fpermissive -w -g
INC=-I./include

${TARGET}:${SRC}
	g++  ${SRC}   -o ${TARGET} ${LIBS} -Wl,-rpath=${PWD}/3rd_lib
%.o:%.cpp
	g++  -c  $^ -o $@ ${OPT} ${INC} -Wl,-rpath=${PWD}/3rd_lib

.PHONY : clean
clean:
	rm -f ${TARGET}
	rm -f *.o
